<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录-X-admin2.0</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/P201704/bbs/Public/Admin/css/font.css">
	<link rel="stylesheet" href="/P201704/bbs/Public/Admin/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="/P201704/bbs/Public/Admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/P201704/bbs/Public/Admin/js/xadmin.js"></script>

</head>
<script type="text/javascript" src="https://cdn.bootcss.com/echarts/3.7.2/echarts.min.js"></script>

<div id="main" style="width: 600px;height: 400px;"></div>

<script type="text/javascript">
	// 基于准备好的dom，初始化echarts实例
	var myChart = echarts.init(document.getElementById('main'));

	date = [<?php echo $date ?>];
	num = [<?php echo $num ?>];

	// 指定图表的配置项和数据
	option = {
	    title: {
	        text: '日发帖量'
	    },
	    tooltip: {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['数量']
	    },
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '3%',
	        containLabel: true
	    },
	    toolbox: {
	        feature: {
	            saveAsImage: {}
	        }
	    },
	    xAxis: {
	        type: 'category',
	        boundaryGap: false,
	        data: date
	    },
	    yAxis: {
	        type: 'value'
	    },
	    series: [
	        {
	            name:'帖子数量',
	            type:'line',
	            stack: '总量',
	            data:num
	        }
	    ]
	};

	// 使用刚指定的配置项和数据显示图表。
	myChart.setOption(option);
</script>